import React, { Component } from 'react'
import News from '../News';
import Message from '../Message';
import {Route} from 'react-router-dom';
import MyNavLink from '../../components/MyNavLink';
export default class Home extends Component {
    render() {
        return (
            <div className="panel">
                <div className="panel-body">
                    <h2>我是Home的内容</h2>
                    <div>
                        <ul className="nav nav-tabs">
                            <li>
                                <MyNavLink to="/home/news" >新闻</MyNavLink>
                            </li>
                            
                            <li>
                                <MyNavLink to="/home/message"> 信息</MyNavLink>
                            </li>
                        </ul>
                        <Route path="/home/news" component={News} />
                        <Route path="/home/message"  component={Message} /> 
                    </div>
                </div>
            </div>
        )
    }
}
